

<%@ page import="com.surelution.projects.crm.GasCardConsume" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'gasCardConsume.label', default: 'GasCardConsume')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${gasCardConsumeInstance}">
            <div class="errors">
                <g:renderErrors bean="${gasCardConsumeInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="actualBusinessDay"><g:message code="gasCardConsume.actualBusinessDay.label" default="Actual Business Day" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardConsumeInstance, field: 'actualBusinessDay', 'errors')}">
                                    <g:textField name="actualBusinessDay" value="${gasCardConsumeInstance?.actualBusinessDay}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="carLicense"><g:message code="gasCardConsume.carLicense.label" default="Car License" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardConsumeInstance, field: 'carLicense', 'errors')}">
                                    <g:textField name="carLicense" value="${gasCardConsumeInstance?.carLicense}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="cardNo"><g:message code="gasCardConsume.cardNo.label" default="Card No" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardConsumeInstance, field: 'cardNo', 'errors')}">
                                    <g:textField name="cardNo" value="${gasCardConsumeInstance?.cardNo}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="clearBusinessDay"><g:message code="gasCardConsume.clearBusinessDay.label" default="Clear Business Day" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardConsumeInstance, field: 'clearBusinessDay', 'errors')}">
                                    <g:textField name="clearBusinessDay" value="${gasCardConsumeInstance?.clearBusinessDay}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="discount"><g:message code="gasCardConsume.discount.label" default="Discount" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardConsumeInstance, field: 'discount', 'errors')}">
                                    <g:textField name="discount" value="${gasCardConsumeInstance?.discount}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="isTrade"><g:message code="gasCardConsume.isTrade.label" default="Is Trade" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardConsumeInstance, field: 'isTrade', 'errors')}">
                                    <g:textField name="isTrade" value="${gasCardConsumeInstance?.isTrade}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="marketName"><g:message code="gasCardConsume.marketName.label" default="Market Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardConsumeInstance, field: 'marketName', 'errors')}">
                                    <g:textField name="marketName" value="${gasCardConsumeInstance?.marketName}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="oilNumber"><g:message code="gasCardConsume.oilNumber.label" default="Oil Number" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardConsumeInstance, field: 'oilNumber', 'errors')}">
                                    <g:textField name="oilNumber" value="${gasCardConsumeInstance?.oilNumber}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="openAgency"><g:message code="gasCardConsume.openAgency.label" default="Open Agency" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardConsumeInstance, field: 'openAgency', 'errors')}">
                                    <g:textField name="openAgency" value="${gasCardConsumeInstance?.openAgency}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="originalSum"><g:message code="gasCardConsume.originalSum.label" default="Original Sum" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardConsumeInstance, field: 'originalSum', 'errors')}">
                                    <g:textField name="originalSum" value="${gasCardConsumeInstance?.originalSum}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="productionType"><g:message code="gasCardConsume.productionType.label" default="Production Type" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardConsumeInstance, field: 'productionType', 'errors')}">
                                    <g:textField name="productionType" value="${gasCardConsumeInstance?.productionType}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="stationName"><g:message code="gasCardConsume.stationName.label" default="Station Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardConsumeInstance, field: 'stationName', 'errors')}">
                                    <g:textField name="stationName" value="${gasCardConsumeInstance?.stationName}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="tradeSum"><g:message code="gasCardConsume.tradeSum.label" default="Trade Sum" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardConsumeInstance, field: 'tradeSum', 'errors')}">
                                    <g:textField name="tradeSum" value="${gasCardConsumeInstance?.tradeSum}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="tradeTime"><g:message code="gasCardConsume.tradeTime.label" default="Trade Time" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardConsumeInstance, field: 'tradeTime', 'errors')}">
                                    <g:datePicker name="tradeTime" precision="day" value="${gasCardConsumeInstance?.tradeTime}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="tradeType"><g:message code="gasCardConsume.tradeType.label" default="Trade Type" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasCardConsumeInstance, field: 'tradeType', 'errors')}">
                                    <g:textField name="tradeType" value="${gasCardConsumeInstance?.tradeType}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>

            <div style="display:inline;position:relative;top:-600px;left:420px;">
	            <g:uploadForm action="cardConsumeImport">
		            <div style="padding-top:30px;width:300px;">加油卡消费明细——批量导入</div>
	                <div class="dialog">
	            		<g:field type="file" name="gasCardConsumeFile"/>
	            	</div>
	            	<div class="buttons">
	            		<span class="button"><g:submitButton name="upload" class="save" value="${message(code: 'default.button.upload.label', default: 'Upload')}" /></span>
	            	</div>
	            </g:uploadForm>
            </div>

        </div>
    </body>
</html>
